package com.tjec.framework.quartz;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.context.annotation.PropertySource;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 
 * @author pangyongfeng
 *
 */

@Component
@PropertySource("classpath:/quartz.properties")
public class Schedule {
	
	 /**
     * 每天的3点半执行
     */
//    @Scheduled(cron="${project.freeze.timer}")
//    public void cronJob(){
//        System.out.println(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())+" >>cron执行....");
//    }

}
